﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace WTwitter.ViewModel.Utility {
	/// <summary>
	/// 複数のViewModelで使う共通のコマンド
	/// </summary>
	public static class CommonCommands {
		#region OpenByBrowser
		private static RelayCommand _openByBrowser;
		/// <summary>
		/// URLをブラウザで開く
		/// </summary>
		public static RelayCommand OpenByBrowser {
			get {
				if (_openByBrowser == null) {
					_openByBrowser = new RelayCommand(param => {
						Process.Start(param as string);
					});
				}
				return _openByBrowser;
			}
		}
		#endregion
	}
}
